﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CQIE.LabAssist.Models
{
    /// <summary>
    /// 楼层表
    /// </summary>
    [Table("TB_Floor")]
    
    public class Floor
    {
        /// <summary>
        /// 楼层id
        /// </summary>
        public int Id{ get; set; }
        /// <summary>
        /// 楼层名称
        /// </summary>
        public string Name { get; set; }

        #region 外键
        /// <summary>
        /// 所属学院
        /// </summary>
        public Building building { get; set; }
        /// <summary>
        /// 对应学院id
        /// </summary>
        public int buildingId { get; set; }

        /// <summary>
        /// 下属实验室
        /// </summary>
        public List<Laboratory> laboratories = null;
        #endregion

    }
}
